home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / SASC_6.0_Disk_4.adf / Compiler_Headers / Include / dos / stdio.h < prev    next >
C/C++ Source or Header  |  1992-07-30  |  886b  |  35 lines

  1. #ifndef DOS_STDIO_H
  2. #define DOS_STDIO_H
  3. /*
  4. **
  5. **    $Filename: dos/stdio.h $
  6. **    $Release: 2.04 Includes, V37.4 $
  7. **    $Revision: 36.6 $
  8. **    $Date: 91/11/01 $
  9. **
  10. **    ANSI-like stdio defines for dos buffered I/O
  11. **
  12. **    (C) Copyright 1989-1991 Commodore-Amiga, Inc.
  13. **        All Rights Reserved
  14. **
  15. */
  16.  
  17. #define ReadChar()        FGetC(Input())
  18. #define WriteChar(c)        FPutC(Output(),(c))
  19. #define UnReadChar(c)        UnGetC(Input(),(c))
  20. /* next one is inefficient */
  21. #define ReadChars(buf,num)    FRead(Input(),(buf),1,(num))
  22. #define ReadLn(buf,len)        FGets(Input(),(buf),(len))
  23. #define WriteStr(s)        FPuts(Output(),(s))
  24. #define VWritef(format,argv)    VFWritef(Output(),(format),(argv))
  25.  
  26. /* types for SetVBuf */
  27. #define BUF_LINE    0    /* flush on \n, etc */
  28. #define BUF_FULL    1    /* never flush except when needed */
  29. #define BUF_NONE    2    /* no buffering */
  30.  
  31. /* EOF return value */
  32. #define ENDSTREAMCH    -1
  33.  
  34. #endif    /* DOS_STDIO_H */
  35.